#include"process.h"
// 场景
double target_file_size = 1024.0; //M, 目标文件的大小
double speed = 1.0; // M

void DownLoad(double size, double split)
{
   double current_total=0.0;
   while(current_total<=size)
   {
       FlushProcess(size,current_total);
       usleep(10000);
       current_total+=split;
   }
   printf("\n");
}

int main()
{   
    DownLoad(target_file_size,speed);
    // process();
    return 0;
}